#IN=../test/flows/flows1306827770.000000
IN=../test/flows/aflow1306476602.000000

#OUTBIN=./txas++
OUTBIN=../bin/txas++

all: txas
txas: cflow asnprefix sfhash prefix trie aux.h base.h main.cpp
	g++ -std=c++0x -o $(OUTBIN)  sfhash.o asnprefix.o prefix.o trie.o cflow.o -lft -lz main.cpp 

prefix: aux.h prefix.hpp prefix.cpp
	g++ -std=c++0x -c prefix.cpp

trie: prefix trie.cpp trie.hpp
	g++ -std=c++0x -c trie.cpp

cflow: cflow.cpp cflow.hpp
	g++ -std=c++0x -c cflow.cpp

asnprefix: prefix.hpp prefix.cpp asnprefix.cpp asnprefix.hpp
	g++ -std=c++0x -c asnprefix.cpp

sfhash: sfhash.c sfhash.h
	g++ -std=c++0x -c sfhash.c


clean:
	rm -f  $(OUTBIN) *.o

# flows: flows.c
# 	gcc -o flows flows.c

flows2: leebinario.c
	gcc -o flows leebinario.c

t:
	@$(OUTBIN) \
    --mapping ../data/prefixes.2011-05-31-2200.txt \
	--mapping ../data/prefixes.cesca.txt \
    --in $(IN)




# 10056 ??
t2:
	@$(OUTBIN) \
    --mapping ../data/prefixes.2011-05-31-2200.txt \
	--mapping ../data/prefixes.cesca.txt \
    --in $(IN) \
    --in-type smart \
    -f 2 \
    -k aa

t3:
	@$(OUTBIN) \
    --mapping ../data/prefixes.2011-05-31-2200.txt \
	--mapping ../data/prefixes.cesca.txt \
    --in ../data/poz.ft-v05.2011-02-10.153000+0000 \
    -f 2 \
    --in-type netflow \
    -k aa


IN4=/home/jmikians/Data/internet2/flows/data/CHIC/2010/2010-09/2010-09-18/ft-v05.2010-09-18.174500+0000
#IN4=../data/poz.ft-v05.2011-02-10.153000+0000
t4:
	@$(OUTBIN) \
    --in $(IN4) \
    -f 1 \
    --in-type netflow \
    -k aa



